import Vue from 'vue'
import Element from 'element-ui'
// import { Table } from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import 'element-ui/lib/theme-chalk/base.css'
// delete Table._Ctor
// const bindEvents = Table.methods.bindEvents
// Object.assign(Table.methods, {
//     bindEvents() {
//         bindEvents.call(this)
//         this.bodyWrapper.addEventListener('mousewheel', this.handleBodyMousewheel)
//     },
//     handleBodyMousewheel(event) {
//         const fixedWrapper = this.$refs.fixedWrapper
//         if (fixedWrapper) {
//             const fixedBodyWrapper = fixedWrapper.querySelector('.el-table__fixed-body-wrapper')
//             if (fixedBodyWrapper) {
//                 event.preventDefault()
//                 fixedBodyWrapper.scrollBy({ left: event.deltaX, top: event.deltaY })
//                 this.$refs.bodyWrapper.scrollBy({ left: event.deltaX, top: event.deltaY })
//             }
//         }
//     }
// })
// Vue.component(Table.name, Table)

Vue.use(Element)
